var bodyParser = require('body-parser')
var urlencodedParser = bodyParser.urlencoded({
    extended: false
})
var express = require('express')
var db = require('../db.js')
var md5 = require('md5-nodejs')
var multer = require('multer');
var router = express.Router()


//随机获取50条数据
router.get('/img', async function (req, res) {

    let sql = `select * from img`
    let data = await db.doSQL(sql)
    res.send(db.handerResult(data))
})



module.exports = router;